import apiurl from '@/config/urlConfig'
import { axios } from '@/utils/request'

class Service {
  async uploadVideo (params) {
    const config = {
      headers: {
        'enctype': 'multipart/form-data'
      }
    }
    return await axios.post(apiurl.url.uploadFile, params, config) || {}
  }
}

const fileService = new Service()
export default fileService
